<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\web\View;
use yii\widgets\LinkPager;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\User */
$this->registerJsFile('/js/jquery.SuperSlide.2.1.1.js');
$this->registerCssFile('/css/common.css');
$this->registerCssFile('/css/collect.css');
$this->registerJsFile('/js/common_js.js', [
    'position' => View::POS_BEGIN
]);
$this->registerCss('a.active{color: #fff;background: #FF6060;}');
$this->registerCssFile('/fonts/iconfont.css');
$this->title = '用户收藏-锐锋堂刀剑网';
?>
<div class="info_content">
	<div class="collect_style r_user_style">
		<div class="title_Section">
			<span>用户收藏</span>
		</div>
		<div class="collect">
			<ul class="Quantity">
				<li>已藏量：12条</li>
				<li></li>
			</ul>
			<div class="collect_list">
				<ul>
				<?php if(!empty($data)):?>
				<?php foreach($data as $val):?>
					<li class="collect_p"><em onclick='delCollect(this,<?=$val['id']?>)' class="iconfont icon-close2 delete"></em>
						
						<div class="collect_info">
							<div class="img_link">
								<a href="/goods/view-<?=$val['goods']['id']?>.html" class="center "><img src="<?=$val['goods']['logo']?>"></a>
							</div>
							<dl class="xinxi">
								<dt>
									<a href="/goods/view-<?=$val['goods']['id']?>.html" class="name"><?=$val['goods']['name']?></a>
								</dt>
								<dd>
									<span class="Price"><b>￥</b><?=$val['goods']['price']?></span><span
										class="collect_Amount">
										<?php ActiveForm::begin(['action'=>'/goods/order.html'])?>
										<input type='hidden' name='oid' value='<?=$val['goods']['id']?>'>
										<input type='submit' class="buy_btn" value='立即购买'>
										<?php ActiveForm::end()?>
										</span>
								</dd>
							</dl>
						</div>
					</li>
					<?php endforeach;?>
				<?php endif;?>
				</ul>
			</div>
			<div class='Inside_pages '>
			<div class="Pagination">
						<?= LinkPager::widget([ 
    'options'=>['class'=>'Paging'],
    'pagination' => $pages, 
	'firstPageLabel' => '首页',
	'lastPageLabel' => '尾页',
    'nextPageLabel' => '下一页', 
    'prevPageLabel' => '上一页',
    'maxButtonCount'=>4
]); ?>
		</div></div>
	</div>
</div>